package com.example.bootdemo.dao;

import com.example.bootdemo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    List<User> queryAll();

    int add(User user);

    User queryById(Long id);

}
